package com.campus.commons.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 晨练检查表
 * </p>
 *
 * @author Rin
 * @since 2020-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CheckMorningExercise对象", description="晨练检查表")
@TableName(excludeProperty={"className","studentName","page","limit","classCount"})
public class CheckMorningExercise implements Serializable {

    private static final long serialVersionUID = 1L;

    private String className;
    private String studentName;
    private Integer page;
    private Integer limit;


    public void setClassid(Integer classid) {
        Class aClass = Class.classes.get(classid);
        this.className = aClass.getClassname();
        this.classCount=aClass.getClassCount();
        this.classid = classid;
    }

    public void setStudentid(Integer studentid) {
        this.studentName = Student.students.get(studentid).getStuname();
        this.studentid = studentid;
    }

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "日期")
    private Date  date;

    @ApiModelProperty(value = "查的班级")
    @TableField("classId")
    private Integer classid;

    @ApiModelProperty(value = "应到人数")
    private Integer classCount;

    @ApiModelProperty(value = "实到人数")
    @TableField("factPerson")
    private Integer factperson;

    @ApiModelProperty(value = "出勤率")
    private String work;

    @ApiModelProperty(value = "上台次数")
    @TableField("upStage")
    private Integer upstage;

    @ApiModelProperty(value = "警告次数")
    @TableField("warnCount")
    private Integer warncount;

    @ApiModelProperty(value = "备注：说明警告原因")
    private String remarks;

    @ApiModelProperty(value = "值班人员")
    @TableField("studentId")
    private Integer studentid;


}
